import {createRouter, createWebHistory, Router} from 'vue-router'
import routes from './routes'
import RouteHooks from "@/router/RouteHooks";

const router: Router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
});

RouteHooks.forEach(hook => hook.hooks(router));

export default router
